﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sotipha.Web.Views
{
    public class CPage : System.Web.UI.Page
    {
        public CPage()
        {
        }
        public int PageID { get; set; }
        /// <summary>
        /// Return: Mods/Abc/PageName.aspx
        /// </summary>
        
        protected override void OnInit(EventArgs e)
        {
            //Important because can't use Response Object
           if (Session["lang"] == null)
                Session["lang"] = "en";
            if (Request.QueryString["lang"] != null)
                Session["lang"] = Request.QueryString["lang"];
          
            base.OnInit(e);
        }
    }
}